<%@ include file="/common/taglibs.jsp"%>
<head>
	<title><spring:message code="login.header"/></title>
</head>
<p>
	<spring:message code="login.header"/>
</p>

<form action="<c:url value="/j_security_check"/>" id="loginForm" method="post">
<p>
    <c:if test="${param.error == 'true'}">
        <div class="ui-widget">
			<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> 
				<div><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
				${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}</div>
			</div>
		</div>
    </c:if>

    <label for="username"><spring:message code="login.username"/></label><br/>
    <input id="username" type="text" name="j_username"/><br/>

    <label for="password"><spring:message code="login.password"/></label><br/>
    <input id="password" type="password" name="j_password"/><br/>

    <input type="checkbox" name="rememberMe" id="rememberMe"/>
    <label for="rememberMe" style="vertical-align: top"><spring:message code="login.rememberMe"/></label><br/>
    
    <button class="aButton" name="login"><spring:message code="login.do"/></button>
</p>
</form>